package com.wdj.creation.abstractfactory;

import com.wdj.creation.abstractfactory.entity.Button;
import com.wdj.creation.abstractfactory.entity.ComboBox;
import com.wdj.creation.abstractfactory.entity.TextField;
import com.wdj.creation.abstractfactory.factory.SkinFactory;
import com.wdj.creation.abstractfactory.factory.SpringSkinFactory;

/**
 * @ClassName Client
 * @Description
 * @Author wdj
 * @Date 2020/8/12 23:08
 * @Version 1.0
 **/
public class Client {
    public static void main(String[] args) {
        Button button;
        ComboBox comboBox;
        TextField textField;
        SkinFactory skinFactory = new SpringSkinFactory();
        button = skinFactory.createButton();
        comboBox = skinFactory.createComBox();
        textField = skinFactory.createTextField();
        button.display();
        comboBox.display();
        textField.display();
    }
}
